﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebPortal.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Modules/Portal/Js/selector.js" type="text/javascript"></script>
    <script src="Js/jquery.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        用户关联部门查询
        <br />
        用户ID：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        用户姓名：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
        姓名支持模糊查询
        <br />
        <hr />
        <div runat="server" id="divMsg" style="text-align: left">
        </div>
    </div>
    <div>
        <asp:Button ID="btn1" runat="server" Text=".." OnClick="btn1_Click" />
        <asp:ListBox ID="lst" runat="server"></asp:ListBox>
        <asp:ListBox ID="ListBox1" runat="server"></asp:ListBox>
        <asp:ListBox ID="ListBox2" runat="server"></asp:ListBox>
    </div>
    <div>
        <table>
            <tr>
                <td>
                    主体：
                    <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>
                </td>
                <td>
                    中心或职能部门：
                    <asp:TextBox ID="txtCenterDept" runat="server"></asp:TextBox>
                </td>
                <td>
                    直属部门ID（可为空）：
                    <asp:TextBox ID="txtDept" runat="server"></asp:TextBox>
                </td>
                <td>
                    流程名：
                    <asp:TextBox ID="txtProcess" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="Check" runat="server" Text="查询" OnClick="Check_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    财务人员：
                    <asp:Label ID="lbFinance" runat="server"></asp:Label>
                </td>
                <td>
                    出纳：
                    <asp:Label ID="lbCashier" runat="server"></asp:Label>
                </td>
                <td colspan="2">
                    <asp:Label ID="lbMsg" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
    </div>

    <div>
        <asp:TextBox ID="txtResourceID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtCNNAME" runat="server"></asp:TextBox>
        <asp:Button ID="Button1"
            runat="server" Text="SelectPage" OnClientClick="return selectPage1();" />
    </div>
    <script type="text/javascript">
        function selectPage1() {
            rtn = selectPage("SELECT RESOURCEID,CNNAME,ENNAME FROM COM_RESOURCE", "ENNAME", "CNNAME,ENNAME", "中文名,英文名", "100,50", "选择资源");
            if (rtn) {
                $("#txtResourceID").val(rtn.RESOURCEID);
                $("#txtCNNAME").val(rtn.CNNAME);
            }
            return false;
        }
     </script>
    </form>
</body>
</html>
